function telepath(tdir)

% TELEPATH add the teletraffic models directories to the path.
% Alternatively, you may add to your startup.m:
%  addpath('path_to_stsim\teletraffic', ...
%          'path_to_stsim\counting', ...
%          'path_to_stsim\ranvar', ...
%          'path_to_stsim\service')
%  
%  telepath([tdir])
%
% Input: 
%      tdir - optional; path to the main directory with the
%         files. Default - current directory.

% Authors: R.Gaigalas, I.Kaj
% v1.0 17-Dec-05

  if nargin<1
    tdir = pwd;
  end

 addpath(tdir, regexprep(tdir, 'teletraffic', 'counting'), ...
          regexprep(tdir, 'teletraffic', 'ranvar'), ...
          regexprep(tdir, 'teletraffic', 'service')); 
 
